ROOT=..
PLATFORM=$(shell $(ROOT)/systype.sh)
include $(ROOT)/Make.defines.$(PLATFORM)

PROGS += fork1
PROGS += vfork1
PROGS += fork2
PROGS += tellwait1
PROGS += tellwait2
PROGS += exec1
PROGS += exec2
PROGS += system
PROGS += system_test

# 还差 nice.c  pracct.c  pruids.c systest3.c times1.c

all: $(PROGS) 

$(PROGS): $(LIBAPUE)
# %: %.c $(LIBAPUE)
	$(CC) $(CFLAGS) -g $@.c -o $@ $(LDFLAGS) $(LDLIBS)

clean:
	rm -rf $(PROGS) $(TEMPFILES) *hole 
	( cd $(ROOT)/lib/  &&  $(MAKE) clean )

include $(ROOT)/Make.libapue.inc 